<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>用户登录</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>

	<div style="color: red">
		<s:fielderror />
	</div>
	<center>
		<s:form action="login.action" method="post" namespace="/"
			validate="true">
			<table>
				<tbody>
					<tr>
						<td>
							<div
								style="margin-center: 32px; border-style: solid; border-color: lightblue; border-width: 2px;">
								<a>用户名:</a> <input id="username" name="user.username"
									type="text" />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div
								style="margin-center: 32px; border-style: solid; border-color: lightblue; border-width: 2px">
								<a>密 码:</a> <input id="password" name="user.password"
									type="password" />
							</div>
						</td>
					</tr>
					<!-- 弹出出错信息 -->
					<tr>
						<td>
							<div id="msg">
								<s:fielderror />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div>
								<span><input id="submit" type="submit" value="登录" /> </span>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</s:form>
	</center>
</body>
</html>
